package DBLayer;

import java.util.ArrayList;

import ModelLayer.OrderLine;



public interface IFDBOrderLine {
	
    // get all order lines related to a specific order
    public ArrayList<OrderLine> getAllOrderLines(int salesOrderID,boolean retriveAssociation);
    
    //get one order line according to saleOrderID and product id
    public OrderLine findOrderLine(int saleOrderID,int productID, boolean retriveAssociation);
 
    //insert a new order line
    public int insertOrderLine(OrderLine line) throws Exception;
    
    //update information about an order line
    public int updateOrderLine(OrderLine order);
    
    public int delete(OrderLine order);

}
